//统计用户数及行为信息

package com.neuedu.hadoop.taobao.Step02.Mapper;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;

public class UserSummaryMapper extends Mapper<LongWritable, Text, Text, NullWritable> {
    private final NullWritable outValue = NullWritable.get();
    @Override
    protected void map(LongWritable key, Text value, Mapper<LongWritable, Text, Text, NullWritable>.Context context) throws IOException, InterruptedException {
        context.write(value, outValue);
    }
}
